import Home from "./views/Home";
import Specially from "./views/Specially";
import { withRouter, NavLink, Switch, Redirect, Route } from "react-router-dom";
const routesConfig = [
  {
    path: "/",
    component: Home,
  },
  {
    path: "/specially",
    component: Specially,
  },
];
export const routes = (
  <Switch>
    {routesConfig.map((config, index) => {
      return <Route exact key={index} {...config} />;
    })}
  </Switch>
);
export const links = (
  <div>
    {routesConfig.map(({ path, component, label }, index) => {
      return (
        <div key={index}>
          <NavLink exact to={path}></NavLink>
        </div>
      );
    })}
  </div>
);
